package com.knowledge.graph.mapper;


import com.knowledge.graph.model.entity.Entity;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @description: 对应“数据结构”对象的数据库操作
 * @author jiwenlong
 * @date 2023/11/14 13:46
 * @version 1.0
 */
@Repository
public interface EntityRepository extends Neo4jRepository<Entity,Long> {

    @Query("match (n:`节点`) return distinct n.type")
    List<String> selectAllType();

}
